package com.sky.mapper;

import com.sky.anno.AutoFill;
import com.sky.dto.SetmealPageQueryDTO;
import com.sky.entity.Setmeal;
import com.sky.enumeration.OperationType;
import com.sky.vo.SetmealVO;

import java.util.List;


public interface SetmealMapper {
    Integer countCategory(Long id);

    List<SetmealVO> page(SetmealPageQueryDTO dto);
    @AutoFill(OperationType.INSERT)
    void add(Setmeal setmeal);

    Integer getStatus(Integer id);

    void deleteBatch(Integer[] ids);

    @AutoFill(OperationType.UPDATE)
    void update(Setmeal setmeal);

    SetmealVO getById(Long id);

    List<Setmeal> getByCategoryId(Long id);
}
